<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P127 6.2.2 弹出对话框和窗口</title>
</head>

<body>
    <input type="button" value="删除" onclick="del()">
    <script>
        var str1 = prompt('请输入测试的选项');
        var str2 = prompt('请输入测试的选项', '用户名和密码');
        function del() {
            if (confirm('确定要删除吗？')) {
                //你按下了“确定”按钮!
            } else {
                //你按下了“确定”按钮!
            }
        }
    </script>
    <a href="../首页/page06.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>